<!DOCTYPE html>
<html>
<head>
<title>${tag} - ${ws.ws_name}</title>
<meta name="description" content="${tag} - ${ws.ws_name}">
<meta name="keywords" content="邋遢熊, ${tag}">
<#include "/${ws.cms_respath}/include/common.inc.ftl">
<link rel="stylesheet" href="${basePath}/res/${ws.cms_respath}/style.css" type="text/css" />
<body>
	<div class="wrapper sticky_footer">
		<!-- HEADER BEGIN -->
		<#include "/${ws.cms_respath}/include/common.head.ftl">
		<!-- HEADER END -->
		<!-- CONTENT BEGIN -->
		<div id="content" class="right_sidebar">
			<div class="inner">
				<div class="general_content">
					<div class="main_content">
						<div class="block_breadcrumbs">
                        	<div class="text"><p>You are here:</p></div>
                            <ul>
                            	<li><a href="${basePath}/">Home</a></li>
                                <li>${tag}</li>
                            </ul>
                        </div>
                        <div class="separator" style="height:30px;"></div>
                        <h2>TAG : ${tag}</h2>
                        <div class="line_4" style="margin:0px 0px 0px;"></div>
						<@cms_content_page tag=tag>
						<div class="block_blog_1">
							<#list page.data as item>
							<article class="blog_post">
								<div class="tail"></div>
								<#if item.img><div class="f_pic">
								<a href="${basePath}/a/${item.id}"><img src="${item.img}" alt="" style="width: 100%;"/></a>
								</div></#if>
								<h4 class="title">
									<a href="${basePath}/a/${item.id}">${item.title}</a>
								</h4>
								<div class="info">
									<div class="date">
										<p>${item.createDate?string("yyyy-MM-dd")}</p>
									</div>
									<div class="author">
										<p>By: ${item.user.nickname}</p>
									</div>
									<div class="r_part">
										<div class="category">
											<p class="text">Category:</p>
											<ul>
												<li><a href="${basePath}/g/${item.category.id}">${item.category.name}</a></li>
											</ul>
										</div>
										<span class="views">${item.viewCount}</span>
										<span class="comments"><span id="sourceId::article${item.id}" class="cy_cmt_count"></span></span>
									</div>
								</div>
								<div class="content">
									<p>${item.intro?substring(0,80)}</p>
								</div>

							</article>
							</#list>
						</div>
						<div class="line_2" style="margin: 24px 0px 25px;"></div>

						<div class="block_pager">
							<#if pagecount &gt; 1> <#assign temppage = pagecount - 1> <a href="${basePath}/tag/${tag}/${temppage}" class="prev">&#60;</a> </#if> <#if
							pagecount &lt; page.maxPage> <#assign temppage = pagecount + 1> <a href="${basePath}/tag/${tag}/${temppage}" class="next">&#62;</a>
							</#if>
							<div class="pages">
								<ul>
									<#list -3..3 as c> 
									<#assign temppage = pagecount + c> 
									<#if temppage&gt;=1 && page.maxPage &gt;= temppage>
									<li><a <#if pagecount !=temppage> href="${basePath}/tag/${tag}/${temppage}"<#else>class="current"</#if> >${temppage}</a></li></#if> 
									</#list>
								</ul>
							</div>
							<div class="clearboth"></div>
						</div>
						</@cms_content_page>

						<div class="clearboth"></div>

					</div>

					<div class="sidebar">
						<div class="separator" style="height: 31px;"></div>
						<div class="separator" style="height: 31px;"></div>
					</div>

					<div class="clearboth"></div>
				</div>
			</div>
		</div>
		<!-- CONTENT END -->
		<!-- FOOTER BEGIN -->
		<#include "/${ws.cms_respath}/include/common.foot.ftl">
		<!-- FOOTER END -->
	</div>
	<!-- POPUP END -->
	<script id="cy_cmt_num" src="http://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=cyrv6VH1d"></script>
</body>